import request from '@/request'
export const getMatchList = () => request({
  url: '/abkj-api-match-provider/tmatch/pagequery',
  method: 'post',
  data: {
  	page: {current: 1, size: 20},
	  cond: {
  		eq: {
  			type: '',
			  state: 1
		  },
		  order: {
  			type: 'desc',
			  attrName: ['create_time']
		  }
	  }
  }
})
export const getTeamInfo = matchId => request({
  url: '/abkj-api-match-provider/signupExt/getTeamInfo',
	params: {matchId},
  method: 'get'
})
export const getMatchInfo = params => request({
  url: '/abkj-api-match-provider/matchExt/getMatchEntiry',
  params
})

export const getNewsList = data => request({
  url: '/abkj-api-match-provider/news/queryList',
	data,
  method: 'post'
})
export const getNewsDetails = data => request({
  url: '/abkj-api-match-provider/news/' + data.id,
  method: 'get'
})
export const getAppeal = () => request({
	url: '/abkj-api-match-provider/signupExt/getAppeal;'
})
export const appeal = data => request({
	url: '/abkj-api-match-provider/signupExt/addAppeal',
	data,
	method: 'post'
})
